<tagLib name="html" />
<include file="Public:header" />
<script charset="utf-8" src="/Public/editor/kindeditor.js"></script>
<script charset="utf-8" src="/Public/editor/lang/zh_CN.js"></script>
<script>
        var editor;
        KindEditor.ready(function(K) {
                editor = K.create('#editor_id');
        });
</script>
<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
    <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;查看留言</div>
</div>
<form action="{YICMS::U('Reply/amend')}" method="post">
	<input type="hidden" name="id" value="{YICMS:$list.id}"/>
    <table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
        <tr class="header">
            <td colspan="4">查看留言</td>
        </tr>
        <tr>
            <td class="altbg1" width="15%"><b>留言人姓名:</b></td>
            <td class="altbg2">{YICMS:$list.arname}</td>
			<td class="altbg1" width="15%"><b>留言时间:</b></td>
            <td class="altbg2">{YICMS:$list.artime|switchtime=###}</td>
        </tr>
		<tr>
            <td class="altbg1" width="15%"><b>留言人邮箱:</b></td>
            <td class="altbg2" width="20%">{YICMS:$list.aremail}</td>
			<td class="altbg1" width="15%"><b>留言IP地址:</b></td>
            <td class="altbg2">{YICMS:$list.ip|getip=###}</td>
        </tr>
		<tr>
			<td class="altbg1" width="15%"><b>是否审核:</b></td>
            <td class="altbg2" width="20%">
				<if condition="$list.state eq 1">
					已审核
				<else />
					<font color="red">等待审核</font>
				</if>
			</td>
			<td class="altbg1" width="15%"><b>是否回复:</b></td>
            <td class="altbg2">
				<if condition="$list.adcontent neq NULL">
					已回复
				<else />
					<font color="red">未回复</font>
				</if>
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="15%"><b>留言内容:</b></td>
            <td class="altbg2" colspan="3" style="padding:30px 0;text-indent:3em;">
				{YICMS:$list.arcontent}
			</td>
        </tr>
		<tr>
            <td class="altbg1" width="15%"><b>回复留言:</b></td>
            <td class="altbg2" colspan="3">
				<textarea id="editor_id" name="adcontent" style="width:700px;height:300px;">{YICMS:$list.adcontent}</textarea>
			</td>
        </tr>
    </table>
    <br>
    <center><input type="submit" class="button" value="回 复"></center><br>
</form>
<br>
<include file="Public:footer" />